Enforce config.json presence when userConfig is enabled#44
Enforce config.json presence when userConfig is enabled#44
Conversation
Updated `runBot` and `build` commands to exit with an error (`process.exit(1)`) if `config.json` is missing or invalid when `experimental.userConfig` is enabled. This ensures that the bot does not start in an inconsistent state when a required configuration file is not provided. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Modified `runBot` and `build` commands to exit with `process.exit(1)` if `config.json` is missing or invalid when required. - Fixed Biome linting issues by using template literals and prefixing unused catch variables. - Fixed Biome formatting in `packages/dev/utils/common.ts`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
The PR addresses the user's request to strictly check for the presence of
config.jsonat startup.Key changes:
packages/dev/utils/common.ts): ModifiedrunBotto log an error and exit ifconfig.jsonis missing or invalid whenuserConfigis enabled.packages/dev/commands/build.ts):config.jsoncannot be copied to thedist/directory.These changes prevent the framework from defaulting to a state where a user-expected configuration is silently ignored.
Fixes #40
PR created automatically by Jules for task 6806745962639474455 started by @Cleboost